import React from 'react';
import ReactDOM from 'react-dom/client';
import './index.css';
import App from './App';
import { BrowserRouter } from 'react-router-dom';
import registerServiceWorker from './registerServiceWorker';
import store from './store/store';
import { Provider } from 'react-redux'


const app = (
    <Provider store={store}>
        <BrowserRouter>
            <App />
        </BrowserRouter>
    </Provider>
)

const rootElement = document.getElementById('root');  
const root = ReactDOM.createRoot(rootElement); // Create a root  
root.render(app); // Use the render method on the root  


registerServiceWorker();